package com.hud.easynavi;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;

/**
 * Created by lucian on 17-4-1.
 */

public class IncommingSMSActivity extends BaseActivity {
    View sms;
    AnimateControl animateControl;
    Handler handler = new Handler();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.acitivity_incomming_sms);
        sms = findViewById(R.id.iv_sms);
        animateControl = new AnimateControl(sms, new AnimateCallback(){
            @Override
            public void onStartAnimation(View view) {

            }

            @Override
            public void onEndAnimation(View view) {
                view.setVisibility(View.VISIBLE);
            }
        });
        animateControl.setRepeat(true);
        animateControl.start();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if(animateControl!=null){
            animateControl.stop();
        }
    }
}
